package com.wuyou.utils;

import com.wuyou.designPatterns.facade.Database;

import java.io.File;

/**
 * FileUtils
 *
 * @Date 2024/10/18 10:43
 * @Author 无忧
 */
public class FileUtils {


    /**
     * 返回类的绝对路径
     * @param c
     * @return
     */
    public static String getClassDir(Class c){
        String classDir = System.getProperty("user.dir") + File.separator + "src" + File.separator + "main" + File.separator + "java" + File.separator + c.getPackage().getName().replace(".", File.separator) + File.separator;
        return classDir;
    }
}
